 var initialState ={
	products:{},
	 lists:{}
 }


function reducer(state=initialState,action) {
	 switch(action.type){
		 case "GETPRODUCT":
			 return Object.assign({},state,{products:action.data})
		 case "GETLISTS":
			 return Object.assign({},state,{lists:action.data});
		 default:
		 	return state;
	 }
 }
 
 export default reducer;